//
//  LSListenNewQuesView.h
//  听说弱点强化训练
//
//  Created by 盛超 on 2018/10/22.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LSModelQues.h"
#import "LSBaseQuesView.h"

@protocol LSListenNewQuesViewDelegate <NSObject>

- (void)FinishAnswerQues:(NSDictionary*)answerDict CorrectRate:(CGFloat)correctRate IsSave:(BOOL)isSave;

- (void)willEnterNextQues;

- (void)retrunShowComplteView;//错题重做时当前试题为最后一题时，完成显示
@end


@interface LSListenNewQuesView : LSBaseQuesView

/*
 试题数据
 */
@property (nonatomic,strong) LSModelQues *model;
/**
 792听说资源库，A00数字化资源库
 */
@property (nonatomic,copy) NSString *from;
/**
 关卡/速度等级
 */
@property (nonatomic,assign) NSInteger speedLayer;
/*
 学生作答结果字典
 */
@property (nonatomic,strong) NSMutableDictionary *answerDict;

/**
 试题状态
 */
@property (nonatomic,assign) NSInteger answerState;//0-普通状态 //1-查看界面（不显示正确答案的） //2-查看界面（显示正确答案的）

@property (nonatomic,weak) id<LSListenNewQuesViewDelegate>delegate;

@property (nonatomic,assign) BOOL isReAnswer;//是否重新作答过

@property (nonatomic,strong) LSSoundPlayer *soundPlayer;


/**
 开启、暂停、释放交互界面
 */
- (void)startSource;

- (void)pauseSource;

- (void)freeSource;

- (void)reStartSource:(NSInteger)speedLayer;

@end

@interface LSListenHeader : UITableViewHeaderFooterView

@property (nonatomic,assign) NSInteger section;
@property (nonatomic,strong) LSChild *child;

@end
